﻿@model BlogAug22.Models.IndexVM
<br/>
<a class="btn center btn-default" href="/Home/AddPost/@Model.MyPosts[0].ID">New Post</a>
<table class="table table-condensed table-striped table-responsive table-hover">
    <tr><th>Post</th><th>Name</th><th></th></tr>
    @foreach (var r in Model.MyPosts)
    {
        <tr onclick="location.href='/Home/Details/@r.ID'">
            <td>@r.Post</td>
            <td>@r.Name</td>
          
        </tr>
    }
</table>